@extends('admin.layout.index')
@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>商品添加</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/goods/insert" method="post" enctype="multipart/form-data">
        		{{ csrf_field() }}
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label" >商品名</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gname" value="{{ old('gname') }}" placeholder="请输入商品名">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">商品类型</label>
        				<div class="mws-form-item">
        					<select name="gpath" id="" style="width:55%">		
								<option value="">--请选择--</option>
								@foreach($data as $k => $v)
								<option value="{{$v['id']}}" >{{$v['name']}}
															
															
								</option>
								@endforeach
							</select>
			
        				</div>
        			</div>
        			
        			<div class="mws-form-row">
        				<label class="mws-form-label">商品数量</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gsum" value="{{ old('gsum') }}" placeholder="请输入商品数量(不能小于1)">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">发布时间</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gfbtime" value="{{ old('gfbtime') }}" placeholder="请输入发布时间(格式为????年)">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">商品图片</label>
        				<div class="mws-form-item" style="width:46.5%">
        					<input type="file"  name="gphoto" value="{{old('gphoto')}}">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">商品大图</label>
        				<div class="mws-form-item" style="width:46.5%">
        					<input type="file"  name="gbigphoto" value="{{old('gbigphoto')}}">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">市场价格</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gscprice" value="{{ old('gscprice') }}" placeholder="请输入市场价格(不能小于1)">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">会员价格</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="ghyprice" value="{{ old('ghyprice') }}" placeholder="请输入会员价格(不能下于1)">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">商品介绍</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gdetail" value="{{ old('gdetail') }}" placeholder="请输入商品简介">
        				</div>
        			</div>
        			
        			<div class="mws-form-row">
        				<label class="mws-form-label">购买可得积分</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="gjf" value="{{ old('gjf') }}" placeholder="请输入可获积分(一般等于商品价格)">
        				</div>
        			</div>
      
        			
        		</div>
        		<div class="mws-button-row">
        			<input type="submit" value="提交" class="btn btn-danger">
        			<input type="reset" value="重置" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection